<?php
$my_item = new large_catalog_item();
$my_item->id=htmlentities($_GET['products_id']);
$my_item->db_load();
$my_item->set_next_before();
?>
<table class="window">
    <tr>
	<th>
		<form method="post" enctype="application/x-www-form-urlencoded;charset=UTF-8" id="largeproductform">
		<input type="button" value="X" myFor="largeproduct" class="closeimg">
		</form>
		<h1 id="nameLargeProd<?php print $my_item->id;?>"><?php print $my_item->name; ?></h1>
	</th>
    </tr>
    <tr>
	<td>
		<table>
			<tr>
				<td class="arrow">
					<a class="leftarrow" myFor="largeproduct" href="?section=large_item&products_id=<?php echo $my_item->before_id; ?>">
					</a>
				</td>
				<td class="content">
					<?php if ($my_item->image) { ?>
						<img class="productimg" src="<?php  print $my_item->image; ?>">
					<?php } ?>
					<table class="textproduct">
						<tr>
							<td>
								<?php print $my_item->description; ?>
							</td>
						</tr>
						<tr>
							<td>
								<span class="price"><?php print number_format($my_item->price, 2, ',', '.'); ?> €</span>
								<input type="button" myFor="largeproduct" value="Cerrar" class="close"/>
							</td>
						</tr>
					</table>
				</td>
				<td class="arrow">
					<a href="?section=large_item&products_id=<?php echo $my_item->next_id; ?>" myFor="largeproduct" class="rightarrow">
					</a>
				</td>
			</tr>
		</table>
	</td>
    </tr>
</table>

